-- GENERATED SPELL FOR [Mercutio Filthgorger] --


function spell0_11886(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11886', 4261, 1)
end

function spell1_11886(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11886', 616, 1)
end

function spell2_11886(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11886', 30280, 1)
end

function Sorts_11886(pUnit, Event)
local choix_sorts_11886 = math.random(0, 2)
if choix_sorts_11886 == 0 then
pUnit:RegisterEvent('spell0_11886', 1, 1)
end
if choix_sorts_11886 == 1 then
pUnit:RegisterEvent('spell1_11886', 1, 1)
end
if choix_sorts_11886 == 2 then
pUnit:RegisterEvent('spell2_11886', 1, 1)
end
end

function mob11886_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11886', math.random(1500, 3000), 1)
end

function mob11886_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11886_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11886_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11886, 1, 'mob11886_Action')
RegisterUnitEvent(11886, 2, 'mob11886_Leave')
RegisterUnitEvent(11886, 3, 'mob11886_Kill')
RegisterUnitEvent(11886, 4, 'mob11886_Die')
